import request from '../utils/request';

// 添加修改分类
export function addUpdateProductCategory(data) {
    return request({
        url: '/ProductCategory/addUpdateProductCategory',
        method: 'post',
        data: data
    });
}
// 获取分类列表
export function getLisProductCategory(data) {
    return request({
        url: '/ProductCategory/getLisProductCategory?pageNum='+ data.pageIndex + '&pageSize=' + data.pageSize,
        method: 'post',
        data: data
    });
}


// 获取分类列表
export function getLisProductCategoryV(data) {
    return request({
        url: '/ProductCategory/getLisProductCategory?pageNum='+ data.pageNum + '&pageSize=' + data.pageSize,
        method: 'post',
        data: data
    });
}
// 获取分类详情
export function getProductCategoryInfo(id) {
    return request({
        url: '/ProductCategory/getProductCategoryInfo?id='+id,
        method: 'get',
    });
}
// 删除排班信息
export function delProductCategory(data) {
    return request({
        url: '/ProductCategory/delProductCategory',
        method: 'post',
        data: data
    });
}
